package com.jhws.business.car.bo;

public class CarConstant {
    //临时停车缴费类型
    public static final int CAR_PAYMENT_TYPE_TEMP = 1;
    //月卡停车缴费类型
    public static final int CAR_PAYMENT_TYPE_CARD = 2;
    /*消息类型*/
    public static final String CAR_MSG_TYPE_MONTHLY_POSTPONED = "MONTHLY_POSTPONED"; //月卡延期
    public static final String CAR_MSG_TYPE_CAR_LANE_PAY = "CAR_LANE_PAY"; //查询车道付款信息
    public static final String CAR_MSG_TYPE_QUERY_CAR_FEE = "QUERY_CAR_FEE"; //查询车辆停车费
    public static final String CAR_MSG_TYPE_PREMATURE_PAYMENT_SUCCESS = "PREMATURE_PAYMENT_SUCCESS"; // 车辆放行（车辆在放行时间内随时出场，单位分钟）
    public static final String CAR_MSG_TYPE_CAR_LANE_PAY_SUCCESS = "CAR_LANE_PAY_SUCCESS"; //车道付成功
    public static final String REDIS_HEAD_PARKING_LOT = "PARKING_LOT:"; //停车场redis头


    /*优惠类型*/
    public static final String DISCOUNT_DIS = "DISCOUNT_DIS"; //折扣优惠
    public static final String DISCOUNT_GIVE = "DISCOUNT_GIVE"; //赠送优惠

    public static String carPaymentType(int typeNum) {
        switch (typeNum) {
            case CAR_PAYMENT_TYPE_TEMP:
                return "临时停车缴费";
            case CAR_PAYMENT_TYPE_CARD:
                return "月卡停车缴费";
        }
        return String.valueOf(typeNum);
    }

    public static String carPaymentMethod(int typeNum) {
        switch (typeNum) {
            case 1:
                return "支付宝支付";
            case 2:
                return "微信支付";
            case 3:
                return "银行卡支付";
        }
        return String.valueOf(typeNum);
    }

    public static String carType(int typeNum) {
        switch (typeNum) {
            case 1:
                return "小型车";
            case 2:
                return "大型车";
            default:
                return "小型车";
        }
    }

    //月卡
    public static final int CAR_MONTH_CARD = 1;
    //临时卡
    public static final int CAR_TEMP_CARD = 3;

    public static String cardType(int typeNum) {
        switch (typeNum) {
            case 1:
                return "临时卡";
            case 2:
                return "月卡";
        }
        return String.valueOf(typeNum);
    }

    //进入
    public static final int CAR_BUSSINESS_IN_TYPE = 1;
    //开出
    public static final int CAR_BUSSINESS_OUT_TYPE = 2;

    public static String enteringType(int typeNum) {
        switch (typeNum) {
            case 1:
                return "进入";
            case 2:
                return "开出";
        }
        return String.valueOf(typeNum);
    }
}
